package com.gitee.zhanyao.common.service.entity.system;

import com.gitee.zhanyao.common.service.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 菜单
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "sys_menu")
public class SysMenu extends BaseEntity implements Serializable {

    /**
     * 菜单主键
     */
    private String id;
    /**
     * 菜单名
     */
    private String name;
    /**
     * 简介
     */
    private String intro;
    /**
     * 图标
     */
    private String icon;
    /**
     * 路径
     */
    private String url;
    /**
     * 父菜单主键
     */
    private String pMenuId;
    /**
     * 菜单层级
     */
    private Integer level;
    /**
     * 排序号
     */
    private Integer sortNo;
    /**
     * 系统编码
     */
    private String sysCode;
    /**
     * 菜单类型
     */
    private Integer type;

}
